import requests
url ="http://192.168.2.36:8088/carRental/file/uploadFile.action"
path = "c:/0.jpg"
with open(path,'rb') as f:
    canshu = {
        "mf":(path,f , "image/ipeg")
    }
    r = requests.post(url,files = canshu)
    print(r.text)
    print(r.json()['data']['src'])


url = "http://www.httpbin.org/post"
file1 = "c:/0.jpg"
file2 = "c:/1.txt"
with open(file1,"rb")as f1:
    with open(file2,"r")as f2:
        canshu = {
            "file1":(file1,f1,"image/jpg"),
            "file2":(file2,f2)
        }
        r = requests.post(url,files = canshu)
        print(r.text)
'''
url = "http://www.httpbin.org/post"
file1 = "c:/0.jpg"
with open(file1,"rb")as f1:
    r = requests.post(url,data = f1)
    print(r.text)
'''